package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ChannelDTO;
import com.heima.model.common.dtos.ResponseResult;

public interface AdChannelService extends IService<AdChannel> {
    /**
     * 根据名称分页查询频道列表
     * @param dto
     * @return
     */
    public ResponseResult findByNameAndPage(ChannelDTO dto);

/**
 * 新增
 * @param adchannel
 * @return
 */
public ResponseResult insert(AdChannel adchannel);

    /**
     * 修改
     * @param adChannel
     * @return
     */
public ResponseResult update(AdChannel adChannel);

    /**
     * 删除
     * @param id
     * @return
     */

public ResponseResult deleteById(Integer id);



}
